package com.zenchn.enums;

/**
 * 客户类型枚举
 * @author panbingqi
 * @date 2021/06/08 15:01
 */
public enum CustomerTypeEnum {

    /**
     * 代理商
     **/
    AGENT("1","代理商"),

    /**
     * 医院
     **/
    HOSPITAL("2","医院");

    CustomerTypeEnum(String type, String appDesc) {
        this.type = type;
        this.appDesc = appDesc;
    }


    public static String getAppDesc(String type) {
        for (CustomerTypeEnum e : values()) {
            if (e.getType().equals(type)) {
                return e.getAppDesc();
            }
        }
        return "";
    }

    /**
     * type
     **/
    private String type;
    /**
     * 设备中文描述
     **/
    private String appDesc;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAppDesc() {
        return appDesc;
    }

    public void setAppDesc(String appDesc) {
        this.appDesc = appDesc;
    }
}
